package com.jams.goodox.net.services;

import com.jams.goodox.constant.UrlConstants;
import com.jams.goodox.entity.CompanyBaseInfoBean;
import com.jams.goodox.entity.resp.EnterpriseHomeResp;
import com.jams.goodox.net.BaseEntity;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.PUT;
import retrofit2.http.Query;

/**
 *
 * Created by jams_zhen on 2017/5/19.
 */

public interface CompanyService {


    // 获取企业基本信息
    @GET(UrlConstants.getCompanyBaseInfo)
    Call<CompanyBaseInfoBean> getCompanyBaseInfo();

    //修改企业介绍
    @PUT(UrlConstants.putCompanyIntro)
    Call<BaseEntity> putCompanyIntro(@Query("enterpriseId") String enterpriseId, @Query("introduce") String introduce);

    //修改企业联系方式
    @PUT(UrlConstants.putCompanyLink)
    Call<BaseEntity> putCompanyLink(@Query("enterpriseId") String enterpriseId, @Query("telephone") String telephone);

    //修改登录密码
    @PUT(UrlConstants.changeCompanyPassword)
    Call<BaseEntity> changeCompanyPassword(@Query("oldPwd") String oldPwd, @Query("newPwd") String newPwd);

    //获取企业账号首页数据
    @GET(UrlConstants.enterpriseHome)
    Call<EnterpriseHomeResp> getEnterpriseHome();
}
